import { createRouter,createWebHistory,RouteRecordRaw } from "vue-router"

const routes:Array<RouteRecordRaw> = [
    {
        path:'/',
        name:'Region',
        component:()=>import('../view/Login/Region.vue')
    },
    {
        path:'/Login',
        name:'Login',
        component:()=>import('../view/Login/Login.vue')
    },
    {
        path:'/ShowUser',
        name:'ShowUser',
        component:()=>import('../view/Login/ShowUser.vue')
    },
    {
        path:'/InvestLogin',
        name:'InvestLogin',
        component:()=>import('../view/Invest/InvestLogin.vue')
    },
    {
        path:'/UserInvestShow',
        name:'UserInvestShow',
        component:()=>import('../view/Invest/UserInvestShow.vue')
    },
    {
        path:'/AilShowInvest',
        name:'AilShowInvest',
        component:()=>import('../view/Invest/AilShowInvest.vue')
    },
    {
        path:'/BorrowLogin',
        name:'BorrowLogin',
        component:()=>import('../view/Borrow/BorrowLogin.vue')
    },
    {
        path:'/UserBorrowData',
        name:'UserBorrowData',
        component:()=>import('../view/Borrow/UserBorrowData.vue')
    },
    {
        path:'/AddUserRedeem/:UBId',
        name:'AddUserRedeem',
        component:()=>import('../view/Borrow/AddUserRedeem.vue')
    },
    {
        path:'/AilUserDate',
        name:'AilUserDate',
        component:()=>import('../view/Borrow/AilUserDate.vue')
    },
]

const router = createRouter({
    history:createWebHistory(),
    routes
})

export default router